using IM.Easy.Infrastructure.Query;
using System.ComponentModel.DataAnnotations;


namespace IM.Easy.SystemServices.Dtos
{
    /// <summary>
    /// 职位信息查询实体
    /// </summary>
    public class SysPostQueryDto : QueryBase
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 编码
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 所属部门
        /// </summary>
        public long? OrgId { get; set; }

        /// <summary>
        /// 启用状态
        /// </summary>
        public bool? IsActive { get; set; }
    }

    /// <summary>
    /// 职位信息dto
    /// </summary>
    public class SysPostDto
    {
        /// <summary>
        /// 主键KEY
        /// </summary>
        public long Id { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 编码
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 所属机构
        /// </summary>
        public long OrgId { get; set; }
        /// <summary>
        /// 职位描述
        /// </summary>
        public string Desc { get; set; }
        /// <summary>
        /// 排序值
        /// </summary>
        public int Order { get; set; }
        /// <summary>
        /// 启用状态
        /// </summary>
        public bool IsActive { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedAt { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public long CreatedBy { get; set; }
        /// <summary>
        /// 最后更新人
        /// </summary>
        public long UpdatedBy { get; set; }
        /// <summary>
        /// 最后更新时间
        /// </summary>
        public DateTime UpdatedAt { get; set; }
        /// <summary>
        /// 删除状态
        /// </summary>
        public bool IsDeleted { get; set; }
        /// <summary>
        /// 删除人
        /// </summary>
        public long DeletedBy { get; set; }
        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime DeletedAt { get; set; }
    }
}
